package com.lyf.design.learn.designmodel.singleton;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/1
 * @VERSION 1.0
 * @DESC
 * 饿汉式的变式--
 * 静态方法加载
 */
public class Main2 {
    private static  Main2 INSTANCE ;//new Main1();
    static {
        INSTANCE = new Main2();
    }
    private Main2(){}
    static Main2 getInstance(){return INSTANCE;}
    void method(){}
}
